import { nanoid } from 'nanoid'

export const getuuId = (ids: string[]) => {
  let id = nanoid();
  if (ids.includes(id)) {
    id = getuuId(ids)
  }
  ids.push(id)
  return id;
}